import os
import logging

logger = logging.getLogger(__name__)

# 获取项目路径
BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# 定义测试用例数据文件路径
CASE_DATA_PATH = os.path.join(BASE_PATH, 'data/case.yaml')
# 定义常用变量数据文件路径
VAR_DATA_PATH = os.path.join(BASE_PATH, 'data/variable.yaml')

# mysql数据库的连接信息
mysql_info = {
    "host": "166.99.166.99",
    "port": 3306,
    "user": "root",
    "password": "123456",
    "db": "qzcsbj",
    "charset": "utf8"
}

# 环境信息
ENV_HOST_PORT = 'http://168.168.168.168:8080'

# 替换符
PATTERN = '\$\{(.*?)\}'
